import service from "../utils/request.js"

// 添加或修改商品
export const addUpdateGoods = (data) => {
    return service({
        url: '/msb/goods/addUpdateGoods',
        method: 'post',
        data
    })
}

// 获取商品详情
export const getGoodsDetail = (data) => {
    return service({
        url: '/msb/goods/getMyGoodsById',
        method: 'post',
        data
    })
}

// 订单详情-卖家
export const getOrderDetail = (data) => {
    return service({
        url: '/system/salesOrder/salesOrderDetail',
        method: 'post',
        data
    })
}

// 买家更新订单子状态(知悉,需求共识，开启服务等)
export const updateOrderSubStatus = (data) => {
    return service({
        url: '/system/order/setStepStatus',
        method: 'post',
        data
    })
}
// 取消订单
export const salesCancelOrder = (data) => {
    return service({
        url: '/system//salesOrder/salesCancelOrder',
        method: 'post',
        data
    })
}

// 加价
export const addPrice = (data) => {
    return service({
        url: '/system/salesOrder/salesRiseOrder',
        method: 'post',
        data
    })
}
